Object-Oriented Inheritance Metrics in the Context of Cognitive Complexity

نویسندگان

  • Deepti Mishra
  • Alok Mishra
چکیده

It is important to identify modules that are fault prone or exhibit evidence of high cognitive complexity as these modules require corrective actions such as increased source code inspection, refactoring or performing more exhaustive testing. This can lead to a better quality software system. It has been found that inheritance has an impact on the cognitive complexity of a software system. In this paper, two inheritance metrics based on cognitive complexity, one at class level CCI (Class Complexity due to Inheritance) and another at program level ACI (Average Complexity of a program due to Inheritance), have been proposed for object-oriented software systems. Additionally, one more metric MC (Method Complexity) has been proposed to calculate the complexity of a method. These proposed metrics are compared with some well known object-oriented inheritance metrics by calculating their values for three random C++ programs. It has been observed that CCI and ACT are better to represent cognitive complexity due to inheritance than other well known class level and program level inheritance metrics.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Object-Oriented Inheritance Metrics: Cognitive Complexity Perspective

Identifying high cognitive complexity modules can lead to a better quality software system and can help during maintenance also. It has been found that inheritance has an impact on cognitive complexity of a software system. In this paper, two inheritance metrics based on cognitive complexity, one at class level CCI (Class Complexity due to Inheritance) and another at program level ACI (Average ...

متن کامل

International Journal of Scientific Research in Computer Science, Engineering and Information Technology

Software metrics are essential to measure the quality of software products. Number of metrics related to software complexity, quality, reusability, reliability, maintainability has been developed in the past and are still being proposed. Software metrics are tools to control the complexity of software. This paper briefly discusses cognitive and noncognitive complexity metrics in Object Oriented...

متن کامل

An inheritance complexity metric for object-oriented code: A cognitive approach

Software metrics should be used in order to improve the productivity and quality of software, because they provide critical information about reliability and maintainability of the system. In this paper, we propose a cognitive complexity metric for evaluating design of object-oriented (OO) code. The proposed metric is based on an important feature of the OO systems: Inheritance. It calculates t...

متن کامل

A Suite of Cognitive Complexity Metrics

In this paper, we propose a suite of cognitive metrics for evaluating complexity of object-oriented (OO) codes. The proposed metric suite evaluates several important features of OO languages. Specifically, the proposed metrics are to measure method complexity, message complexity (coupling), attributes complexity and class complexity. We propose also a code complexity by considering the complexi...

متن کامل

Analysis of Object Oriented Software Metrics

Object oriented analysis and design is becoming more popular in software development environment and object oriented analysis and design metrics is an essential part of software environment. This study focus on a set of object oriented metrics that can be used to measure the quality of an object oriented analysis and design. A metrics-based means to both describe and characterize the structure ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Fundam. Inform.

دوره 111  شماره 

صفحات  -

تاریخ انتشار 2011